<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
<script src="<%=basePath%>js/jquery-1.2.1.min.js" type="text/javascript"></script>
<script src="<%=basePath%>js/basic.js" type="text/javascript"></script>
<script src="<%=basePath%>js/menu-collapsed.js" type="text/javascript"></script>
<meta charset="utf-8">
<link href="<%=basePath%>style/basic.css" rel="stylesheet"
	type="text/css" />
</head>
<body>
	<div id="header">
		<div id="top-f">
			<div id="top">
				<ul id="top-ul">
					<!-- 本网站 -->
					<li><a href="#">收藏高考志愿网</a></li>
					<li><a href="#">关于高考志愿网</a></li>
				</ul>
				<div id="login-reg">
					<!-- 登陆与注册 -->
					<c:choose>
						<c:when test="${ session.user == null }">
							<form id="form1" action="<%=basePath%>userAction.php"
								method="post">

								<label for="username">会员账号</label><input type="text"
									id="username" name="user.username" placeholder="请输入会员账号" /> <label
									for="pwd">密码</label><input type="password" id="pwd"
									name="user.password" placeholder="请输入密码" /> <input
									type="submit" id="login" value="登录" /> <input type="button"
									id="reg" value="注册" onclick="window.location.href='login.html'" />

							</form>
						</c:when>
						<c:otherwise>
							<p>welcome,</p>
							<p>${ session.user.username }</p>
						</c:otherwise>
					</c:choose>
				</div>
			</div>
		</div>
		<div id="logo-search-f">
			<div id="logo-search">
				<div id="logo">
					<!-- 网站logo -->
					<a href="#"><img src="<%=basePath%>img/logo1.png" height="65"
						width="205" alt="logo1.png" title="logo1.png"></a>
				</div>
				<div id="search">
					<!-- 搜索 -->
					<form id="form2">
						<input type="text" id="search-txt" placeholder="请输入要搜索的内容" /> <input
							type="button" id="search-btn" value="搜索" />
						<ul id="search-top">
							<!-- 热门搜索 -->
							<li><a href="#">大学定位</a></li>
							<li><a href="#">专业定位</a></li>
							<li><a href="#">志愿填报案例</a></li>
						</ul>
					</form>
				</div>
			</div>
		</div>
		<div id="nav-f">
			<div id="nav">
				<!-- 主导航 -->
				<ul>
					<li class="home"><a href="<%=basePath%>index.php">首页</a></li>
					<li><a href="<%=basePath%>experts.php">专家介绍</a></li>
					<li><a href="<%=basePath%>sense.php">报考常识</a></li>
					<li><a href="<%=basePath%>skill.php" class="selected">填报技巧</a></li>
					<li><a href="eva.html">素质测评</a></li>
					<li><a href="contact.html">联系我们</a></li>
				</ul>
			</div>
		</div>
	</div>
	<div id="mainer">
		<!-- 主题 -->
		<div id="left">
			<!-- 左导航 -->
			<ul id="menu">
				<li class="span-more"><span class="selected2 show">志愿常识<a
						href="#" class="more">更多&gt&gt</a></span>
					<ul>
						<li class="regu selected3"><a href="#">招生简章</a></li>
						<li class="regu"><a href="#">常见术语</a></li>
						<li class="regu"><a href="#">重点学科</a></li>
					</ul></li>
				<li class="span-more"><span class="show">志愿常识<a href="#"
						class="more">更多&gt&gt</a></span>
					<ul>
						<li class="regu"><a href="#">招生简章</a></li>
						<li class="regu"><a href="#">常见术语</a></li>
						<li class="regu"><a href="#">重点学科</a></li>
					</ul></li>
				<li class="span-more"><span class="show">志愿常识<a href="#"
						class="more">更多&gt&gt</a></span>
					<ul>
						<li class="regu"><a href="#">招生简章</a></li>
						<li class="regu"><a href="#">常见术语</a></li>
						<li class="regu"><a href="#">重点学科</a></li>
					</ul></li>
				<li class="span-more"><span class="show">志愿常识<a href="#"
						class="more">更多&gt&gt</a></span>
					<ul>
						<li class="regu"><a href="#">招生简章</a></li>
						<li class="regu"><a href="#">常见术语</a></li>
						<li class="regu"><a href="#">重点学科</a></li>
					</ul></li>
				<li class="span-more"><span class="show">志愿常识<a href="#"
						class="more">更多&gt&gt</a></span>
					<ul>
						<li class="regu"><a href="#">招生简章</a></li>
						<li class="regu"><a href="#">常见术语</a></li>
						<li class="regu"><a href="#">重点学科</a></li>
					</ul></li>
			</ul>
		</div>
		<div id="center">
			<!-- 主要内容显示区 -->
			<table border="1" cellpadding="3" cellspacing="0"
				style="width: 60%;margin:auto;text-align:center">
				<c:forEach items="${ list }" var="item">
					<tr>
						<td>${ item.name }</td>
					</tr>
				</c:forEach>
			</table>
		</div>

	</div>
	<div id="footer">
		<div id="links">
			<!-- 友情链接 -->
			<div id="links-title">
				<span>友情链接</span>
			</div>
			<div id="links-mainer">
				<ul>
					<li><a href="#" class="right-big">优品优聘人才网</a></li>
					<li><a href="#">大众网</a></li>
					<li><a href="#">山西校迅通教育网</a></li>
					<li><a href="#">中国在职研究生招生信息网</a></li>
				</ul>
			</div>
		</div>
		<div id="footer-b"></div>
		<!-- 最后简介 -->
	</div>

	<script src="js/basic.js"></script>
</body>
</html>